WCPay\Payment_Information S

Total Complexity 50
Dependencies 11
Dependents 3
Total lines 488
Lines of code 150
Logical lines of code 74
Comment lines 250
Methods 28
Properties 14

Methods 28

Method Rating Maintainability Complexity Lines of code
get_token_from_request()
S
58 6 15
__construct()
S
55 4 18
from_payment_request()
S
55 4 18
get_cvc_confirmation_from_request()
S
60 4 14
get_payment_method_from_request()
S
64 4 9
get_fingerprint_from_request()
S
68 3 7
should_save_payment_method_to_store()
S
79 2 3
get_payment_method()
S
72 2 6
should_save_payment_method_to_platform()
S
79 2 3
get_error()
S
82 1 3
set_error()
S
81 1 3
get_customer_id()
S
82 1 3
get_payment_method_stripe_id()
S
82 1 3
get_fingerprint()
S
82 1 3
get_cvc_confirmation()
S
82 1 3
is_changing_payment_method_for_subscription()
S
82 1 3
set_is_changing_payment_method_for_subscription()
S
81 1 3
get_payment_type()
S
82 1 3
must_save_payment_method_to_platform()
S
81 1 3
must_save_payment_method_to_store()
S
81 1 3
is_merchant_initiated()
S
80 1 3
set_payment_type()
S
81 1 3
is_using_manual_capture()
S
80 1 3
is_using_saved_payment_method()
S
80 1 3
set_token()
S
81 1 3
get_payment_token()
S
82 1 3
get_order()
S
82 1 3
is_offline_payment_method()
S
79 1 3